package cn.dong.sms.utils;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 读取sms配置文件
 */
@Component
@Getter
@RefreshScope
public class SmsProperties {

    @Value("${alibaba.sms.accessKeyId}")
    private String accessId;
    @Value("${alibaba.sms.accessKeySecret}")
    private String accessSecret;

    /**
     * 签名
     */
    @Value("${alibaba.sms.signature}")
    private String signature;

    /**
     * 模板
     */
    @Value("${alibaba.sms.template}")
    private String template;


    /**
     * 模板
     */
    @Value("${alibaba.sms.regionId}")
    private String regionId;



}
